home *** CD-ROM | disk | FTP | other *** search
/ Champak 120 / Vol 120.iso / games / asteroid.swf / scripts / __Packages / com / evilfree / astroidsRevenge / ShipBoss.as < prev    next >
Encoding:
Text File  |  2010-11-09  |  16.4 KB  |  450 lines

  1. function ┬º\x01\x02┬º()
  2. {
  3.    return 614 % 511 * 5;
  4. }
  5. var ┬º\x01┬º = 231 + "\x01\x02"();
  6. while(true)
  7. {
  8.    if(eval("\x01") == 746)
  9.    {
  10.       set("\x01",eval("\x01") - 97);
  11.       ┬º┬ºpush(true);
  12.    }
  13.    else if(eval("\x01") == 902)
  14.    {
  15.       set("\x01",eval("\x01") - 73);
  16.       ┬º┬ºpush("\x0f");
  17.    }
  18.    else if(eval("\x01") == 122)
  19.    {
  20.       set("\x01",eval("\x01") + 30);
  21.    }
  22.    else if(eval("\x01") == 693)
  23.    {
  24.       set("\x01",eval("\x01") - 541);
  25.    }
  26.    else if(eval("\x01") == 207)
  27.    {
  28.       set("\x01",eval("\x01") + 637);
  29.       ┬º┬ºpush(true);
  30.    }
  31.    else if(eval("\x01") == 133)
  32.    {
  33.       set("\x01",eval("\x01") + 74);
  34.    }
  35.    else if(eval("\x01") == 829)
  36.    {
  37.       set("\x01",eval("\x01") - 116);
  38.       ┬º┬ºpush(eval(function ┬º\x01\x02┬º()
  39.       {
  40.          return 614 % 511 * 5;
  41.       }));
  42.    }
  43.    else if(eval("\x01") == 412)
  44.    {
  45.       set("\x01",eval("\x01") + 490);
  46.       var ┬º┬ºpop() = function ┬º\x01\x02┬º()
  47.       {
  48.          return 614 % 511 * 5;
  49.       };
  50.    }
  51.    else if(eval("\x01") == 197)
  52.    {
  53.       set("\x01",eval("\x01") + 622);
  54.    }
  55.    else if(eval("\x01") == 939)
  56.    {
  57.       set("\x01",eval("\x01") - 742);
  58.       if(function ┬º\x01\x02┬º()
  59.       {
  60.          return 614 % 511 * 5;
  61.       })
  62.       {
  63.          set("\x01",eval("\x01") + 622);
  64.       }
  65.    }
  66.    else if(eval("\x01") == 649)
  67.    {
  68.       set("\x01",eval("\x01") - 12);
  69.       if(function ┬º\x01\x02┬º()
  70.       {
  71.          return 614 % 511 * 5;
  72.       })
  73.       {
  74.          set("\x01",eval("\x01") + 158);
  75.       }
  76.    }
  77.    else
  78.    {
  79.       if(eval("\x01") == 637)
  80.       {
  81.          set("\x01",eval("\x01") + 158);
  82.          toggleHighQuality();
  83.          if(!┬º┬ºpop()[function ┬º\x01\x02┬º()
  84.          {
  85.             return 614 % 511 * 5;
  86.          }].astroidsRevenge)
  87.          {
  88.             _global.com.evilfree.astroidsRevenge = new Object();
  89.          }
  90.          ┬º┬ºpop();
  91.          if(!_global.com.evilfree.astroidsRevenge.ShipBoss)
  92.          {
  93.             com.evilfree.astroidsRevenge.ShipBoss extends com.evilfree.astroidsRevenge.getTarget;
  94.             var _loc2_ = com.evilfree.astroidsRevenge.ShipBoss = function(m, target_mc, s)
  95.             {
  96.                super(m,target_mc);
  97.                this.maxPower = s / 2;
  98.                this.power.size = this.maxPower * 2.2;
  99.                this.power.life = this.maxPower * 2.2;
  100.                this.bulletDamage = new Ship(this.power);
  101.                this.prototype = 0;
  102.                this.bulletDamage.getShotClock("getVolume");
  103.                this.shotClock();
  104.                this.bulletDamage.drawMe(0,55000);
  105.             }.myTarget;
  106.             _loc2_.main = function()
  107.             {
  108.                super.main();
  109.             };
  110.             _loc2_.getPlayerAsteroid = function()
  111.             {
  112.                if(_root.fireShot < 25)
  113.                {
  114.                   return 20;
  115.                }
  116.                return 5;
  117.             };
  118.             _loc2_.shotCount = function()
  119.             {
  120.                return 30;
  121.             };
  122.             _loc2_.myAngle = function()
  123.             {
  124.                return 50;
  125.             };
  126.             _loc2_.yPos = function()
  127.             {
  128.                this.xPos = 10;
  129.             };
  130.             _loc2_.createBullet = function()
  131.             {
  132.             };
  133.             _loc2_.spawnFighter = function()
  134.             {
  135.                this.getFakeRandom = "getStageWidth";
  136.             };
  137.             _loc2_.getStageHeight = function()
  138.             {
  139.                this.type = this.fast.acceleration();
  140.             };
  141.             _loc2_.createPlacedShip = function(target_mc)
  142.             {
  143.                this.setVariables = target_mc.friction();
  144.                this.power = target_mc.doHitTestOnList("ySpeed","xSpeed" + this.setVariables,this.setVariables);
  145.             };
  146.             _loc2_.shotClock = function()
  147.             {
  148.                if(this.getFakeRandom == "length")
  149.                {
  150.                   return undefined;
  151.                }
  152.                var _loc2_ = 700 * this.prototype * this.fast.getTargetXDistance() / 100;
  153.                this.bulletDamage.getTargetYDistance(_loc2_);
  154.             };
  155.             _loc2_.Math = function()
  156.             {
  157.                this.bulletDamage.sqrt();
  158.             };
  159.             _loc2_.myAtan = function()
  160.             {
  161.                super.myAtan();
  162.                this.getStageHeight();
  163.                var _loc6_ = this.getSize(this.myCos / this.mySin);
  164.                var _loc5_ = this.getAddedLife(this.myCos / this.mySin);
  165.                var _loc4_ = 8;
  166.                var _loc3_ = this.maxPower * 7;
  167.                this.prototype = 0;
  168.                if(this.addLife < _loc3_)
  169.                {
  170.                   this.prototype = (_loc3_ - this.addLife) / _loc3_;
  171.                   this.type.getAddedSize(_loc6_ * _loc4_ * this.prototype);
  172.                   this.type.addSize(_loc5_ * _loc4_ * this.prototype);
  173.                }
  174.                this.shotClock();
  175.             };
  176.             _loc2_.bulletHitMe = function()
  177.             {
  178.                this.bulletDamage.sqrt();
  179.                this.fast.addXSpeed(this);
  180.                delete this.bulletDamage;
  181.                this.getFakeRandom = "length";
  182.                this.power.addYSpeed();
  183.                this.power = this.Sound.doHitTestOnList("get_mc","get_mc" + this.setVariables,this.setVariables);
  184.                var _loc2_ = new Ship(this.fast.asteroidSplit());
  185.                _loc2_.getTargetYDistance(this.fast.getTargetXDistance());
  186.                _loc2_.getShotClock("attachSound");
  187.                _loc2_.drawMe(0,1);
  188.                this.power.getSoundVolume = this.setVolume;
  189.                this.power.start = this.my_mc;
  190.                this.power.sphere = 200;
  191.                this.power._alpha = 200;
  192.             };
  193.             ┬º┬ºpush(blowUp(com.evilfree.astroidsRevenge.ShipBoss.myTarget,null,1));
  194.          }
  195.          ┬º┬ºpop();
  196.          break;
  197.       }
  198.       if(eval("\x01") == 152)
  199.       {
  200.          set("\x01",eval("\x01") + 260);
  201.          ┬º┬ºpush("\x0f");
  202.          ┬º┬ºpush(1);
  203.       }
  204.       else if(eval("\x01") == 713)
  205.       {
  206.          set("\x01",eval("\x01") + 226);
  207.          ┬º┬ºpush(!function ┬º\x01\x02┬º()
  208.          {
  209.             return 614 % 511 * 5;
  210.          });
  211.       }
  212.       else
  213.       {
  214.          if(eval("\x01") == 479)
  215.          {
  216.             set("\x01",eval("\x01") + 214);
  217.             toggleHighQuality();
  218.             stop();
  219.             ┬º┬ºpop()[function ┬º\x01\x02┬º()
  220.             {
  221.                return 614 % 511 * 5;
  222.             }].life = com.evilfree.astroidsRevenge.ShipBoss = function(m, target_mc, s)
  223.             {
  224.                super(m,target_mc);
  225.                this.maxPower = s / 2;
  226.                this.power.size = this.maxPower * 2.2;
  227.                this.power.life = this.maxPower * 2.2;
  228.                this.bulletDamage = new Ship(this.power);
  229.                this.prototype = 0;
  230.                this.bulletDamage.getShotClock("getVolume");
  231.                this.shotClock();
  232.                this.bulletDamage.drawMe(0,55000);
  233.             }.Math;
  234.             ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  235.             ┬º┬ºconstant(109)(com.evilfree.astroidsRevenge.ShipBoss.myAngle,null,1);
  236.             break;
  237.          }
  238.          if(eval("\x01") == 795)
  239.          {
  240.             set("\x01",eval("\x01") - 588);
  241.          }
  242.          else
  243.          {
  244.             if(eval("\x01") != 844)
  245.             {
  246.                if(eval("\x01") == 819)
  247.                {
  248.                   set("\x01",eval("\x01") - 531);
  249.                   if(!_global.com)
  250.                   {
  251.                      _global.com = new Object();
  252.                   }
  253.                   function ┬º\x01\x02┬º()
  254.                   {
  255.                      return 614 % 511 * 5;
  256.                   }
  257.                   if(!_global.com.evilfree)
  258.                   {
  259.                      _global.com.evilfree = new Object();
  260.                   }
  261.                   ┬º┬ºpop();
  262.                   if(!_global.com.evilfree.astroidsRevenge)
  263.                   {
  264.                      _global.com.evilfree.astroidsRevenge = new Object();
  265.                   }
  266.                   ┬º┬ºpop();
  267.                   if(!_global.com.evilfree.astroidsRevenge.ShipBoss)
  268.                   {
  269.                      com.evilfree.astroidsRevenge.ShipBoss extends com.evilfree.astroidsRevenge.Ship;
  270.                      _loc2_ = com.evilfree.astroidsRevenge.ShipBoss = function(m, target_mc, s)
  271.                      {
  272.                         super(m,target_mc);
  273.                         this.maxPower = 255;
  274.                         this.power = this.maxPower;
  275.                         this.size = s;
  276.                         this.life = 100;
  277.                         this.bulletDamage = 25;
  278.                      }.prototype;
  279.                      _loc2_.getVolume = function()
  280.                      {
  281.                         return 50;
  282.                      };
  283.                      _loc2_.getShotClock = function()
  284.                      {
  285.                         this.shotClock = 40;
  286.                      };
  287.                      _loc2_.drawMe = function()
  288.                      {
  289.                      };
  290.                      _loc2_.getTarget = function()
  291.                      {
  292.                         this.myTarget = this.main.getPlayerAsteroid();
  293.                      };
  294.                      _loc2_.fireShot = function()
  295.                      {
  296.                         this.shotCount = 1;
  297.                         this.main.createBullet(this.xPos,this.yPos,this.myAngle,this.bulletDamage);
  298.                         this.spawnFighter();
  299.                      };
  300.                      _loc2_.spawnFighter = function()
  301.                      {
  302.                         var _loc4_ = this.main.getFakeRandom();
  303.                         var _loc2_ = this.main.getStageWidth() - 50;
  304.                         var _loc3_ = this.main.getStageHeight() - 50;
  305.                         if(_loc4_ > 0.75)
  306.                         {
  307.                            var _loc6_ = this.main.getFakeRandom() * 200 + 25;
  308.                            var _loc5_ = this.main.getFakeRandom() * _loc3_ + 25;
  309.                         }
  310.                         else if(_loc4_ > 0.5)
  311.                         {
  312.                            _loc6_ = this.main.getFakeRandom() * _loc2_ + 25;
  313.                            _loc5_ = this.main.getFakeRandom() * 150 + 25;
  314.                         }
  315.                         else if(_loc4_ > 0.25)
  316.                         {
  317.                            _loc6_ = this.main.getFakeRandom() * 150 + _loc2_ - 175;
  318.                            _loc5_ = this.main.getFakeRandom() * _loc3_ + 25;
  319.                         }
  320.                         else
  321.                         {
  322.                            _loc6_ = this.main.getFakeRandom() * _loc2_ + 25;
  323.                            _loc5_ = this.main.getFakeRandom() * 150 + _loc3_ - 175;
  324.                         }
  325.                         this.main.createPlacedShip(this.xPos,this.yPos,_loc6_,_loc5_,{type:"fast",size:15,acceleration:2.5});
  326.                      };
  327.                      _loc2_.setVariables = function()
  328.                      {
  329.                         this.acceleration = 1;
  330.                         this.friction = 0.5;
  331.                         this.xSpeed = 0;
  332.                         this.ySpeed = 0;
  333.                         this.xPos = -100;
  334.                         this.yPos = -100;
  335.                      };
  336.                      _loc2_.doHitTestOnList = function(asteroidList)
  337.                      {
  338.                         if(asteroidList == undefined)
  339.                         {
  340.                            return undefined;
  341.                         }
  342.                         var _loc12_ = asteroidList.length;
  343.                         var _loc6_ = 0;
  344.                         while(_loc6_ < _loc12_)
  345.                         {
  346.                            var _loc2_ = asteroidList[_loc6_];
  347.                            var _loc7_ = this.getTargetXDistance(_loc2_);
  348.                            var _loc8_ = this.getTargetYDistance(_loc2_);
  349.                            var _loc10_ = Math.sqrt(_loc7_ * _loc7_ + _loc8_ * _loc8_);
  350.                            var _loc9_ = this.myAtan(_loc8_,_loc7_);
  351.                            var _loc5_ = this.myCos(_loc9_);
  352.                            var _loc4_ = this.mySin(_loc9_);
  353.                            if(_loc10_ < _loc2_.getSize() / 2 + this.size)
  354.                            {
  355.                               _loc2_.addLife(this.getAddedLife());
  356.                               _loc2_.addSize(this.getAddedSize());
  357.                               if(_loc2_ != this.main.getPlayerAsteroid())
  358.                               {
  359.                                  _loc2_.bulletHitMe(50);
  360.                                  _loc2_.addXSpeed(_loc5_ * 10);
  361.                                  _loc2_.addYSpeed(_loc4_ * 10);
  362.                               }
  363.                               else
  364.                               {
  365.                                  _loc2_.addXSpeed(_loc5_ * 60);
  366.                                  _loc2_.addYSpeed(_loc4_ * 60);
  367.                               }
  368.                               var _loc3_ = new Sound(this.main.get_mc());
  369.                               _loc3_.attachSound("asteroidSplit");
  370.                               _loc3_.setVolume(this.main.getSoundVolume());
  371.                               _loc3_.start(0,1);
  372.                               this.addXSpeed((- _loc5_) * 4);
  373.                               this.addYSpeed((- _loc4_) * 4);
  374.                               this.life -= 2;
  375.                               this.my_mc.sphere._alpha = this.life;
  376.                               if(this.life <= 0)
  377.                               {
  378.                                  this.blowUp();
  379.                               }
  380.                               return 1;
  381.                            }
  382.                            _loc6_ = _loc6_ + 1;
  383.                         }
  384.                         return 0;
  385.                      };
  386.                      _loc2_.place_mc = function(target_mc)
  387.                      {
  388.                         this.myDepth = target_mc.getNextHighestDepth();
  389.                         this.my_mc = target_mc.attachMovie("shipBoss","ship" + this.myDepth,this.myDepth);
  390.                      };
  391.                      _loc2_.animate = function()
  392.                      {
  393.                         if(this.power < this.maxPower)
  394.                         {
  395.                            this.power = this.power + 1;
  396.                         }
  397.                         if(this.myTarget.getState() == "dead")
  398.                         {
  399.                            this.getTarget();
  400.                         }
  401.                         this.turnTowardsShip();
  402.                         this.shotCount = this.shotCount + 1;
  403.                         if(this.shotCount == this.shotClock)
  404.                         {
  405.                            this.fireShot();
  406.                         }
  407.                         this.showCharge();
  408.                         this.accelerateToTarget();
  409.                         this.xPos += this.xSpeed;
  410.                         this.yPos += this.ySpeed;
  411.                         this.checkBounds();
  412.                         this.applyFriction();
  413.                         this.checkForAsteroids();
  414.                         this.my_mc._x = this.xPos;
  415.                         this.my_mc._y = this.yPos;
  416.                      };
  417.                      _loc2_.blowUp = function()
  418.                      {
  419.                         this.main.removeShip(this);
  420.                         this.state = "dead";
  421.                         this.my_mc = this.parent_mc.attachMovie("explosion","explosion" + this.myDepth,this.myDepth);
  422.                         this.my_mc._x = this.xPos;
  423.                         this.my_mc._y = this.yPos;
  424.                         this.my_mc._xscale = 1200;
  425.                         this.my_mc._yscale = 1200;
  426.                      };
  427.                      ┬º┬ºpush(ASSetPropFlags(com.evilfree.astroidsRevenge.ShipBoss.prototype,null,1));
  428.                   }
  429.                   ┬º┬ºpop();
  430.                   break;
  431.                }
  432.                if(eval("\x01") == 288)
  433.                {
  434.                   set("\x01",eval("\x01") - 288);
  435.                }
  436.                break;
  437.             }
  438.             set("\x01",eval("\x01") - 365);
  439.             if(function ┬º\x01\x02┬º()
  440.             {
  441.                return 614 % 511 * 5;
  442.             })
  443.             {
  444.                set("\x01",eval("\x01") + 214);
  445.             }
  446.          }
  447.       }
  448.    }
  449. }
  450.